From c29b9ebd06b5781a277d1f8365468ff90def0dfd Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 17 Apr 2003 05:12:11 +0000 Subject: [PATCH] Free more nodes on the tree when we nuke a tag. Approved by Ron. --- gpx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpx.c b/gpx.c index 6460378a4..636ed600b 100644 --- a/gpx.c +++ b/gpx.c @@ -881,6 +881,12 @@ void free_gpx_extras( xml_tag *tag ) if (tag->parentcdata) { xfree(tag->parentcdata); } + if (tag->tagname) { + xfree(tag->tagname); + } + if (tag->attributes) { + xfree(tag->attributes); + } next = tag->sibling; xfree(tag); tag = next; -- 2.30.2